<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="STYLESHEET" href="print_static.css" type="text/css" />

<style type="text/css">
body{
	padding: 5px 0 0 5px;
	font-size:14px;
	background: #DDCD82;
	text-align: center;
	font-family:Arial; 
	line-height:1em; 
	color:#000; 
	text-align:center;
}
table { 
	border:#a28244 solid 2px;
	width: 1500px;
    padding: 0;
    font: normal 12px  Arial;
    background-color: #d5c672;
}

td  {padding:2px}
table tbody tr:hover { background: #b8a85c;}
h1 {font-size:145%; text-align:center; font-weight:normal;}
.tabla {
	height:80%;
	width: 100%;
	overflow:scroll;
}
.tabla thead {border:0; height: 30px;}

th{ 	
font: bold 12px Arial;
color: #000000;

border: 1px solid #a28244;
letter-spacing: 0px;
padding: 1px 1px 1px 3px;
background: #ba954e;
}
.materia {text-align: justify;}
.foot { width: 100%;}
.espacio {height:50px;}

div.salto{
	height:1px; width:100%;
	page-break-after: always
}
</style>

</head>

<body>
<p align="right">
<?php
	$date = date('Y-m-d');
	echo "Talca, ".$this->my_library->dayMonthYear($date).".-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"; 
	?>
<a href="javascript:close();">Cerrar ventana</a>
</p>
<div class="tabla">
<table>
	<thead>
	<tr>
		<th width="85">Rol</th>
		<th width="100">Procedencia</th>
		<th width="99">fecha Iniciación</th>
		<th width="300">Materia</th>
		<th width="200">Reclamante</th>
		<th width="200">Reclamado</th>
		<th width="auto">Fs. Sentencia</th>
		<th width="auto">Apelación</th>
		<th width="auto">N° Fojas</th>
		<th width="auto">Fecha Remisión</th>
		<th width="auto">Cumplasé</th>
		<th width="auto">Archivada</th>
		
	</tr>
	</thead>
	<tbody>
<?php
			foreach($resultados->result() as $row)
	     	{
	     		echo "<tr>";
	     		echo "<td align='center'>".$row->rol."</td>";
	     		echo "<td align='center'>".$row->procedencia."</td>";
	     		echo "<td align='center'>".$row->fecha_iniciacion."</td>";
	     		echo "<td>".$row->materia."</td>";
	     		echo "<td align='center'>".$row->reclamante."</td>";
	     		echo "<td align='center'>".$row->reclamado."</td>";
	     		echo "<td align='center'>".$row->fs_sentencia."</td>";
	     		if(strcmp('0000-00-00',$row->apelacion) == 0)
	     		{
	     			echo "<td align='center'></td>";
	     		}
	     		else
	     		{
	     			echo "<td align='center'>".$row->apelacion."</td>";
	     		}
	     		if(strcmp('0',$row->num_fojas) == 0)
	     		{
	     			echo "<td align='center'></td>";
	     		}
	     		else
	     		{
	     			echo "<td align='center'>".$row->num_fojas."</td>";
	     		}
	     		if(strcmp('0000-00-00',$row->fecha_remision) == 0)
	     		{
	     			echo "<td align='center'></td>";
	     		}
	     		else
	     		{
	     			echo "<td align='center'>".$row->fecha_remision."</td>";
	     		}
	     		if(strcmp('0000-00-00',$row->cumplase) == 0)
	     		{
	     			echo "<td align='center'></td>";
	     		}
	     		else
	     		{
	     			echo "<td align='center'>".$row->cumplase."</td>";
	     		}
	     		if(strcmp('0000-00-00',$row->archivada) == 0)
	     		{
	     			echo "<td align='center'></td>";
	     		}
	     		else
	     		{
	     			echo "<td align='center'>".$row->archivada."</td>";
	     		}
	     		
	     	}
	     	echo "</tr>";
     		
     ?>
	</tbody>
</table>
</div>
</body>
</html>